package com.tledu.mail.service.impl;

import com.tledu.mail.entity.Mail;
import com.tledu.mail.mapper.MailMapper;
import com.tledu.mail.service.MailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MailServiceImpl implements MailService {
    @Autowired
    private MailMapper mailMapper;
    @Override
    public List<Mail> getMail() {
        return mailMapper.getMail();
    }

    @Override
    public String sendMail(String message) {
        mailMapper.sendMail(message);
      return "添加警告成功";
    }
}
